package com.lwlk.zdk.mapper.task;

import com.lwlk.zdk.model.task.pwTaskEnterpriseAssessmentStatistics;
import com.lwlk.zdk.model.task.pwTaskPlatformAssessmentStatistics;
import com.lwlk.zdk.model.task.pwTaskPlatformAssessmentStatisticsExample;
import com.lwlk.zdk.model.task.pwTaskRegionAssessmentStatistics;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface pwTaskPlatformAssessmentStatisticsMapper {
    int countByExample(pwTaskPlatformAssessmentStatisticsExample example);

    int deleteByExample(pwTaskPlatformAssessmentStatisticsExample example);

    int insert(pwTaskPlatformAssessmentStatistics record);

    int insertSelective(pwTaskPlatformAssessmentStatistics record);

    List<pwTaskPlatformAssessmentStatistics> selectByExample(pwTaskPlatformAssessmentStatisticsExample example);

    int updateByExampleSelective(@Param("record") pwTaskPlatformAssessmentStatistics record, @Param("example") pwTaskPlatformAssessmentStatisticsExample example);

    int updateByExample(@Param("record") pwTaskPlatformAssessmentStatistics record, @Param("example") pwTaskPlatformAssessmentStatisticsExample example);

    int insertPlatformNull(@Param("pId") Integer pId, @Param("platformName") String platformName, @Param("describe") String describe, @Param("assessPeriod") String assessPeriod);

    List<pwTaskPlatformAssessmentStatistics> selectDim(@Param("type") Integer type, @Param("theInspectionTime") String theInspectionTime, @Param("assessGradeId")Integer assessGradeId,@Param("status")Integer status);

    List<Map<String, Object>> selectStatus(@Param("id") Integer id, @Param("theInspectionTime") String theInspectionTime, @Param("assessPeriod") String assessPeriod);

    int updateRanking(@Param("pId") int pId, @Param("rank") int rank);
}